import Vue from 'vue';
import VueRouter from 'vue-router';
import routes from './routes'
// import guard from './guard'

Vue.use(VueRouter);

export default {
    install(wf) {
        const router = new VueRouter({
            mode: 'hash',
            routes: routes,
        });

        // router.afterEach(guard.afterEach);
        // router.beforeEach(guard.beforEach)

        wf.addModule('router', router);
    },
};
